package Commandes;

import Composite.*;
import javax.swing.JOptionPane;

public class Commande_SupprimerTag implements Commande{

    private Element courant;
    private String nom;
    
    public Commande_SupprimerTag(Element courant,String nom) {
        
        this.courant=courant;
        this.nom=nom;
    }
        
    public boolean execute(){
        
      return this.courant.removeTag(nom);

    }
    
    public boolean cancel(){
        
        return this.courant.addTag(nom);
    }
    
    
    public String getNomCommande(){
        return new String(" ( Suppression du tag: "+this.nom+" ) ");
    }
    
    
}
